package Android.SinYateClient;

import java.util.Hashtable;

public class Task {
	private Hashtable<String, String> parameters;
	private String type;
	private int taskid;

	public Task(String type) {
		parameters = new Hashtable<String, String>();
		this.type = type;
	}

	public void setTaskId(int taskid) {
		this.taskid = taskid;
	}

	public int getTaskId() {
		return taskid;
	}

	public String getType() {
		return type;
	}

	public void getType(String type) {
		this.type = type;
	}

	public Hashtable<String, String> getParameters() {
		return parameters;
	}

	public String getParameterValue(String key) {
		return (String) parameters.get(key);
	}

	public void setParameterValue(String key, String value) {
		parameters.put(key, value);
	}
}
